﻿using AiMoBridge.Interface;
using System;
using System.Linq;

namespace AiMoRhino.Pipeline
{
    class ExecutorInfo : IExecutorInfo
    {
        public ExecutorInfo(string[] paths, bool inCN, IDebugPrinter printer)
        {
            if (paths.Length > 0)
            {
                AssemblyPath = paths[0];
            }
            LangInCN = inCN;
            Printer = printer;
            if (paths.Length > 1)
            {
                ExternalAssembliesPaths = paths.Skip(1).ToArray();
            }
        }
        public string[] ExternalAssembliesPaths { get; } = Array.Empty<string>();
        public string AssemblyPath { get; } = "";
        public bool LangInCN { get; }
        public IDebugPrinter Printer { get; }
    }
}
